# Add tests (alphabetical order) ##############################################
#

add_warpx_test(
    test_1d_collision_z  # name
    1  # dims
    2  # nprocs
    inputs_test_1d_collision_z  # inputs
    "analysis_collision_1d.py diags/diag1000600"  # analysis
    "analysis_default_regression.py --path diags/diag1000600"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_1d_collision_z_correct_conservation  # name
    1  # dims
    2  # nprocs
    inputs_test_1d_collision_z_correct_conservation  # inputs
    "analysis_collision_1d_correct_conservation.py diags/diag1000000 diags/diag1000010"  # analysis
    "analysis_default_regression.py --path diags/diag1000010"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_2d_collision_xz  # name
    2  # dims
    1  # nprocs
    inputs_test_2d_collision_xz  # inputs
    "analysis_collision_2d.py diags/diag1000150"  # analysis
    "analysis_default_regression.py --path diags/diag1000150"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_2d_collision_xz_global_debye  # name
    2  # dims
    1  # nprocs
    inputs_test_2d_collision_xz_global_debye  # inputs
    "analysis_collision_2d.py diags/diag1000150"  # analysis
    "analysis_default_regression.py --path diags/diag1000150"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_2d_collision_xz_picmi  # name
    2  # dims
    1  # nprocs
    inputs_test_2d_collision_xz_picmi.py  # inputs
    "analysis_collision_2d.py diags/diag1000150"  # analysis
    "analysis_default_regression.py --path diags/diag1000150"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_3d_collision_iso  # name
    3  # dims
    1  # nprocs
    inputs_test_3d_collision_iso  # inputs
    "analysis_collision_3d_isotropization.py diags/diag1000100"  # analysis
    "analysis_default_regression.py --path diags/diag1000100"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_3d_collision_xyz  # name
    3  # dims
    1  # nprocs
    inputs_test_3d_collision_xyz  # inputs
    "analysis_collision_3d.py diags/diag1000150"  # analysis
    "analysis_default_regression.py --path diags/diag1000150"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_rz_collision  # name
    RZ  # dims
    1  # nprocs
    inputs_test_rz_collision  # inputs
    "analysis_collision_rz.py diags/diag1000150"  # analysis
    "analysis_default_regression.py --path diags/diag1000150 --skip-particles"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_1d_collision_z_Bremsstrahlung  # name
    1  # dims
    1  # nprocs
    inputs_test_1d_collision_z_Bremsstrahlung  # inputs
    "analysis_collision_1d_Bremsstrahlung.py diags/diag1000100"  # analysis
    "analysis_default_regression.py --path diags/diag1000100"  # checksum
    OFF  # dependency
)

add_warpx_test(
    test_2d_collisions_split_position_push_electrostatic  # name
    2  # dims
    1  # nprocs
    inputs_test_2d_collisions_split_position_push_electrostatic  # inputs
    "analysis_test_2d_collisions_split_position_push_electrostatic.py --path diags/reducedfiles/"  # analysis
    "analysis_default_regression.py --path diags/diag1/"  # checksum
    OFF  # dependency
)
